package com.ftg.product.exam.entity;

import java.util.Date;
import java.lang.Double;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.FieldFill;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.util.D;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 记录以及管理学员的基本信息 Entity定义
* @author kangjx
* @version 1.0
* @date 2021-01-15
* Copyright © ftg
*/
@ApiModel(value = "记录以及管理学员的基本信息")
@Getter @Setter @Accessors(chain = true)
public class BaseStudent extends BaseCustomEntity {
    private static final long serialVersionUID = 1810416057647142161L;

    /**
    * sexcode字段的关联字典
    */
    public static final String DICT_SEX = "SEX";

    /**
    * schoolcode字段的关联字典
    */
    public static final String DICT_SCHOOL = "SCHOOL";

    /**
    * majorcode字段的关联字典
    */
    public static final String DICT_MAJOR = "MAJOR";

    /**
    * 姓名 
    */
    @ApiModelProperty(value="姓名", example = "")
    @Length(max=100, message="姓名长度应小于100")
    @TableField()
    private String stuname;

    /**
    * 性别 
    */
    @ApiModelProperty(value="性别", example = "")
    @TableField()
    private Long sexcode;

    /**
    * 出生日期 
    */
    @ApiModelProperty(value="出生日期", example = "")
    @Length(max=100, message="出生日期长度应小于100")
    @TableField()
    private String stubirthday;

    /**
    * 毕业院校 
    */
    @ApiModelProperty(value="毕业院校", example = "")
    @TableField()
    private Long schoolcode;

    /**
    * 所学专业 
    */
    @ApiModelProperty(value="所学专业", example = "")
    @TableField()
    private Long majorcode;

    /**
    * 移动电话 
    */
    @ApiModelProperty(value="移动电话", example = "")
    @Length(max=100, message="移动电话长度应小于100")
    @TableField()
    private String stutelphone;

    /**
    * 登陆密码 
    */
    @ApiModelProperty(value="登陆密码", example = "")
    @Length(max=100, message="登陆密码长度应小于100")
    @TableField()
    private String stupassword;

    /**
    * 所在班级 
    */
    @ApiModelProperty(value="所在班级", required = true, example = "1234567890")
    @NotNull(message = "所在班级不能为空")
    @TableField()
    private Long classid;


} 
